import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    nickname:"",
    phone:"",
    password:""
  },
  mutations: {
    CHANGE(state,user){
      state.nickname = user.nickname;
      state.phone  = user.phone;
      state.password = user.password
    }
  },
  actions: {
  },
  modules: {
  }
})
